package com.nebula.salary.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 修改工资前端显示类
 *
 * @author codex
 * @since 2022-02-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SalaryEditVo对象", description = "修改工资前端显示类")
public class SalaryEditVo implements Serializable {
    private static final long serialVersionUID = 3546732009563047147L;
    
    @ApiModelProperty(value = "工资ID")
    @TableId(value = "salary_id", type = IdType.AUTO)
    private Long salaryId;
    
    @ApiModelProperty(value = "工资")
    private BigDecimal salary;
    
    @ApiModelProperty(value = "工资发放时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate issueDate;
    
    @ApiModelProperty(value = "备注")
    private String remark;
}
